package com.wanxi.dao;

import com.wanxi.model.NewsModel;
import com.wanxi.service.NewsService;

import java.util.ArrayList;
import java.util.List;

public class NewsDao {
    public List<NewsModel> findNewsModelList() {
        List<NewsModel> list = new ArrayList<>();
        String[] titles = {"adfs", "afsd", "fads"};
        String[] contents = {"fasd", "fasdfa", "Fsadfas"};
        for (int i = 0; i < titles.length; i++) {
            NewsModel model = new NewsModel();
            model.setContent(contents[i]);
            model.setTitle(titles[i]);
            list.add(model);
        }
        return list;
    }
}
